package com.foton.configration;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Author RenPu
 * @Date 2023/3/24 11:02
 * @Version 1.0
 * @Description:
 **/

@Slf4j
@Configuration
public class TestConfigration {

    @Bean
    @Profile("test")   //配置环境隔离注解：可以在不同环境下，进行触发执行
    public void testConfig(){
     log.info("我再启动类外面，我被加载了......");

    }




}
